package com.ymttest.database.sqlwapper.shenqisettlement;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.shenqisettlement.ProxyFissionSettlement;

public class ProxyFissionSettlementWrapper {

	SqlManager manager;

	public ProxyFissionSettlementWrapper() {
		manager = new SqlManager("shenqisettlement");
	}
	
	@SuppressWarnings("unchecked")
	public ProxyFissionSettlement selectByOrderId(Long orderId) {
		
		ProxyFissionSettlement proxyFissionSettlement = new ProxyFissionSettlement();
		List<ProxyFissionSettlement> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.shenqisettlement.ProxyFissionSettlementMapper.selectByOrderId",
						orderId);
		manager.commit();

		if (result.size() > 0) {
			proxyFissionSettlement = result.get(0);
		}

		return proxyFissionSettlement;
	}
	
	public static void main(String[] args) {
		
		ProxyFissionSettlementWrapper wrapper = new ProxyFissionSettlementWrapper();
		
		System.out.println(wrapper.selectByOrderId(13405108699L));
	}
}
